<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <script src="${pageContext.request.contextPath}/assets/js/common/bootstrapValidator.js"></script>
</head>
<body>
<div class="panel panel-default">
    <div class="panel-heading">
        <h3 class="panel-title">题目上传</h3>
    </div>
    <div class="panel-body">
        <form class="form-horizontal tasi-form" method="post"
              action="${pageContext.request.contextPath}/ques/content/saveUpload?callbackMethod=refreshTable"
              data-toggle="validator"
              onsubmit="return saveContentUpload();">
            <div class="form-group">
                <label for="quesType" class="col-sm-2 control-label">题型</label>
                <div class="col-sm-10">
                    <select class="select2 select2-offscreen" id="quesType" name="quesType" style="width: 180px;" data-placeholder="请选择" tabindex="" title="">
                        <c:forEach items="${typeList}" var="item">
                            <option value="${item.longCode}">${item.name}</option>
                        </c:forEach>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">内容上传</label>
                <div class="col-sm-6">
                    <a class="btn btn-primary"  href="${pageContext.request.contextPath}/filesystem/toUpload?maxNum=1&uploadSuccessMethod=contentCallback&uploadUrl=/ques/content/uploadContent&fileFormat=xls,xlsx,zip" data-toggle="modal" data-target="#base_modal">上传内容</a>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label"></label>
                <div class="col-sm-6">
                    <input type="hidden" id="importCode" name="importCode" value="">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label"></label>
                <div class="col-sm-6">
                </div>
            </div>
            <div class="form-group m-b-0">
                <div class="col-sm-offset-1 col-sm-6">
                    <button type="submit" class="btn btn-info waves-effect waves-light">保存</button>
                </div>
            </div>
        </form>
    </div> <!-- panel-body -->
</div>
</body>
<script src="${pageContext.request.contextPath}/assets/js/module/ques/content/ques_content_upload.js"></script>
</html>